<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
  <ul>
    <li v-for="name in arr">{{name}}</li>
  </ul>
  <table border="2">
    <caption>英雄表</caption>
    <tr>
      <th>名字</th>
      <th>类型</th>
      <th>价格</th>
    </tr>
    <tr v-for="hero in heroes">
      <td>{{hero.name}}</td>
      <td>{{hero.type}}</td>
      <td>{{hero.money}}</td>
    </tr>
  </table>
</div>
<!--引入vue-->
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let v= new Vue({
        el:"body>div",
        data:{
          arr:["孙尚香","诸葛亮","张飞"],
          heroes:[
            {name:"孙悟空",type:"打野",money:13888},
            {name:"韩信",type:"打野",money:13888},
            {name:"貂蝉",type:"法师",money:18888},
          ]
        }
    })
</script>
</body>
</html>